package com.example.java17demo.service.impl;

import com.example.java17demo.model.User;
import com.example.java17demo.service.UserService;
import org.springframework.stereotype.Service;

@Service
public class UserServiceImpl implements UserService {
    
    @Override
    public boolean validateUser(User user) {
        // 简单示例，实际应用中应使用安全的密码存储和验证方法
        return "1".equals(user.getUsername()) && "1".equals(user.getPassword());
    }
} 